package com.lagou.builder;

public class BuilderTest {

    //使用构建者模式进行类的构建
    //构建一个对象可以通过构建多个效地对象实现
    public static void main(String[] args) {
        ComputerBuilder computerBuilder = new ComputerBuilder().installDisplayer("显示器").installkeyboard("键盘")
                .installMainUnit("处理器").installmouse("鼠标");
        Computer computer = computerBuilder.getComputer();
        System.out.println(computer);
    }
}
